Skip to content

Add risk_intelligence and event_id to fixtures#5

Merged
gzuidhof merged 4 commits intomainfrom
update-sdk-testserver-fixtures
Jan 27, 2026
Merged

Add risk_intelligence and event_id to fixtures#5
gzuidhof merged 4 commits intomainfrom
update-sdk-testserver-fixtures

Conversation

@gzuidhof
Copy link
Copy Markdown
Contributor

Adds the event_id and risk_intelligence fields to the successful siteverify responses.

Adds sanity tests for the data within the fixtures.

This change should not break any existing SDKs, with these additional fixtures we can be more certain of that.

@gzuidhof gzuidhof requested a review from greenberga January 27, 2026 10:59
Timestamp string `json:"timestamp"`
Origin string `json:"origin"`

RiskIntelligence null.Value[RiskIntelligenceData] `json:"risk_intelligence,omitempty"`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is RiskIntelligence here too? I thought it was a sibling of challenge only, not a child as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good catch, removed it now

"expectation": {
"should_accept": true,
"was_able_to_verify": true,
"is_client_error": false
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should there be an event_id as part of this expectation? and the one above it? maybe it's supposed to be like this but i noticed all the ones you added above have one

"is_client_error": false
"is_client_error": false,
"event_id": "ev_720d50fd-1e47-4a2d-bc94-f5eeda259f7b",
"risk_intelligence_value": null
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

purposely a different name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah.. I started out by having the value of risk_intelligence again in the expectations.. Then I figured that the test-runners can just read it from the response value instead - I forgot to clean these two up 👀

@gzuidhof gzuidhof merged commit 27d2c94 into main Jan 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants